<template>
    <div class="benefit-card">
      <div class="benefit-icon">
        <el-icon :size="40" color="#D4B483">
          <component :is="icon" />
        </el-icon>
      </div>
      <div class="benefit-text" style="color: #C0C0C0;">{{ text }}</div>
    </div>
</template>

<script setup>
import { defineProps } from 'vue';
import { ElIcon } from 'element-plus';

const props = defineProps({
  icon: {
    type: String,
    required: true,
  },
  text: {
    type: String,
    required: true,
  },
});
</script>

<style>
.benefit-card {
  width: 380px;
  height: 250px;
  background-color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.benefit-icon {
  width: 80px;
  height: 80px;
  background-color: #f0f0f0;
  border-radius: 50%;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #D4B483;
}

.benefit-text {
  font-size: 16px;
  color: #333;
  text-align: center;
}
</style>